package cc.comac.mom.controller.config;

import cc.comac.mom.api.config.EquipDataConfigService;
import cc.comac.mom.api.config.EquipLabelConfigService;
import cc.comac.mom.bean.EquipDev;
import cc.comac.mom.bean.config.EquipLabelConfigParamBean;
import cc.comac.mom.entity.config.EquipLabelConfigEntity;
import cc.comac.mom.util.ResultBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping(value ="/EquipLabelConfig")
public class EquipLabelConfigController {
	@Autowired
	private EquipLabelConfigService equipLabelConfigService;

	@RequestMapping(value = "/save",method = RequestMethod.POST)
	public ResultBean save(@RequestBody EquipLabelConfigEntity obj) {
		
		return equipLabelConfigService.save(obj);
		
	}
	
	@RequestMapping(value = "/update",method = RequestMethod.POST)
	public ResultBean update(@RequestBody EquipLabelConfigEntity obj) {
		
		return equipLabelConfigService.update(obj);
		
	}
	
	@RequestMapping(value = "/delete",method = RequestMethod.POST)
	public ResultBean delete(@RequestBody EquipLabelConfigEntity obj) {
		
		return equipLabelConfigService.delete(obj);
		
	}
	
	@RequestMapping(value = "/getById",method = RequestMethod.POST)
	public ResultBean getById(@RequestBody EquipLabelConfigEntity obj) {
		return equipLabelConfigService.getById(obj);
		
	}
	
	@RequestMapping(value = "/selectByCondition",method = RequestMethod.POST)
	public ResultBean selectByCondition(@RequestBody EquipLabelConfigParamBean obj) {
		return equipLabelConfigService.selectByCondition(obj);
	}


}
